package com.project.service.imp;

import com.project.bean.GradeBean;
import com.project.mapper.IGradeMapper;
import com.project.service.IGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class GradeServiceImp implements IGradeService {
    @Autowired
    private IGradeMapper mapper;
    @Override
    public List<GradeBean> findByIdList(Integer[] roleArray) {
        return mapper.findByIdList(roleArray);
    }

    @Override
    public List<GradeBean> findAll() {
        return mapper.selectList(null);
    }
}
